<admintpl file="header" />
<script src="/public/static/js/jquery.json.js"></script>
<script src="/public/static/js/common.js" charset="utf-8"></script>
<script src="/public/static/js/config.js" charset="utf-8"></script>
<script src="/public/static/js/comet.js" charset="utf-8"></script>
<script src="/public/static/js/chat.js?jj" charset="utf-8"></script>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:U('Call/index')}">喊单列表</a></li>
        <li class="active"><a href="{:U('Call/add')}">添加喊单</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form">
        <fieldset>
            <div class="control-group">
                <label class="control-label">开仓时间：</label>
                <div class="controls">
                    {$row['create_time']}
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">交易品种：</label>
                <div class="controls">
                    {$row['deal_variety_name']}
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">开仓方向：</label>
                <div class="controls">
                    {$row['category_name']}
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">开仓价格：</label>
                <div class="controls">
                    {$row['price']}
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">委托类型：</label>
                {:html_select($price_category,$row['close_price_category'],'close_price_category','',true,'close_price_category')}
            </div>

            <div class="control-group">
                <label class="control-label">平价格：</label>
                <div class="controls">
                    <input type="text" name="close_price" placeholder="平仓价格"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">平仓备注：</label>
                <div class="controls">
                    <textarea name="close_remark" cols="100" rows="6" placeholder="平仓备注"></textarea>
                </div>
            </div>
        </fieldset>
        <input type="hidden" name="id" id="callid" value="{$row['id']}">
        <div class="form-actions">
            <button type="button" class="btn btn-primary" onclick="checkCloseCall()">平仓</button>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script src="/public/static/js/pageload-call.js?222"></script>
<script type="text/javascript">
    pageload.init()
</script>
</body>
</html>